package com.mvp.shq.washer.ui.shop.product;

import com.mvp.shq.washer.base.BaseModel;
import com.mvp.shq.washer.base.BasePresenter;
import com.mvp.shq.washer.base.BaseView;
import com.mvp.shq.washer.entity.result.BaseResult;
import com.mvp.shq.washer.entity.shop.Product;
import com.mvp.shq.washer.entity.shop.ShopSpec;
import com.mvp.shq.washer.entity.shop.result.ProductResult;

import java.util.List;
import java.util.Map;

import io.reactivex.Observable;
import retrofit2.http.QueryMap;

/**
 * Created by shq1 on 2017/10/9.
 */

public interface ProductConstract {
    interface Model extends BaseModel{
        Observable<BaseResult<List<ShopSpec>>> getSpecByCategoryId(String categoryId);
        Observable<BaseResult<ProductResult>> getSkuList(Map<String,String> params,int pageNo,int pageSize);
    }
    interface View extends BaseView{
        void getSpecS(List<ShopSpec> list);
        void getSkuList(List<Product> list);
    }
    abstract class Presenter extends BasePresenter<Model,View>{
        abstract void getSpecByCategoryId(String categoryId);
        abstract void getSkuList(Map<String,String> params,int pageNo,int pageSize);
    }
}
